package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.teacherplan.dto.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-07-08
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 根据课程id courseId查询课程计划信息
     * @param courseId
     * @param companyId
     * @return
     */
    TeachplanDTO queryTeacherPlanById(Long courseId,Long companyId);

    /**
     * 添加或修改课程计划
     * @param dto
     * @return
     */
    TeachplanDTO modifyOrCreateTeachPlan(TeachplanDTO dto,Long companyId);

    /**
     * 删除课程计划信息
     * @param teachPlanId  课程计划Id
     * @paam companyId   机构id
     */
    void deleteTeachPlan(Long teachPlanId,Long companyId);
}
